package com.example.demo.demos.web;

import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LogTestController {
    private Log log = LogFactory.getLog(LogTestController.class);
    @GetMapping("/testlog")
    public String testLog(){
        log.info("测试日志");
        return "测试日志";
    }
}
